<!DOCTYPE html>
<html dir="ltr">

<head>
  <meta charset="UTF-8">
  <title>Note - Basic</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <link href="../../../../../css/ionic.bundle.css" rel="stylesheet">
  <link href="../../../../../scripts/testing/styles.css" rel="stylesheet">
  <script src="../../../../../scripts/testing/scripts.js"></script>
  <script src="../../../../../dist/ionic.js"></script>
</head>

<body>
  <ion-app>

    <ion-header>
      <ion-toolbar>
        <ion-title>Note - Basic</ion-title>
      </ion-toolbar>
    </ion-header>

    <ion-content>
      <ion-list>
        <ion-list-header>Notes Right</ion-list-header>
        <ion-item>
          <ion-label>Default Note</ion-label>
          <ion-note slot="end">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Primary Note</ion-label>
          <ion-note slot="end" color="primary">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Secondary Note</ion-label>
          <ion-note slot="end" color="secondary">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Tertiary Note</ion-label>
          <ion-note slot="end" color="tertiary">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Success Note</ion-label>
          <ion-note slot="end" color="success">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Warning Note</ion-label>
          <ion-note slot="end" color="warning">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Danger Note</ion-label>
          <ion-note slot="end" color="danger">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Light Note</ion-label>
          <ion-note slot="end" color="light">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Medium Note</ion-label>
          <ion-note slot="end" color="medium">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Dark Note</ion-label>
          <ion-note slot="end" color="dark">99</ion-note>
        </ion-item>

        <ion-item onclick="toggleColor()">
          <ion-note id="toggleColor" slot="end" color="primary">primary</ion-note>
          <ion-label>Dynamic Note Color (toggle)</ion-label>
        </ion-item>
      </ion-list>

      <ion-list>
        <ion-list-header>Notes Left</ion-list-header>
        <ion-item>
          <ion-label>Default Note</ion-label>
          <ion-note slot="start">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Primary Note</ion-label>
          <ion-note slot="start" color="primary">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Secondary Note</ion-label>
          <ion-note slot="start" color="secondary">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Tertiary Note</ion-label>
          <ion-note slot="start" color="tertiary">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Success Note</ion-label>
          <ion-note slot="start" color="success">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Warning Note</ion-label>
          <ion-note slot="start" color="warning">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Danger Note</ion-label>
          <ion-note slot="start" color="danger">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Light Note</ion-label>
          <ion-note slot="start" color="light">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Medium Note</ion-label>
          <ion-note slot="start" color="medium">99</ion-note>
        </ion-item>

        <ion-item>
          <ion-label>Dark Note</ion-label>
          <ion-note slot="start" color="dark">99</ion-note>
        </ion-item>
      </ion-list>
    </ion-content>


  </ion-app>

  <script>
    const note = document.querySelector('#toggleColor');

    function toggleColor() {
      const prev = note.getAttribute('color');
      note.setAttribute('color', prev === 'secondary' ? 'primary' : 'secondary');
      note.innerHTML = prev === 'secondary' ? 'primary' : 'secondary';
    }
  </script>
</body>

</html>
